package com.cochain.dynamicdatasource.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cochain.dynamicdatasource.entity.po.Documents;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface DocumentsMapper extends BaseMapper<Documents> {
 
    @Select("select * from documents")
    List<Documents> get();

    /**
     * 根据docIds获取存在的docIds
     * @param docIds 待查询的docIds
     * @return 存在的docIds
     */
    List<String> getExistDocIds(List<String> docIds);
}